package roleView 
{
	/**
	 * ...
	 * @author Kylin206
	 */
	public class FrameBmpPool 
	{
		
		static private var map_data:Object = { };
		
		public function FrameBmpPool() 
		{
			
		}
		
		/**
		 * 存储位图帧信息序列
		 * @param	id
		 * @param	data
		 */
		static public function storeBitmapFrameInfo(id:String, data:Vector.<BitmapFrameInfo>):void
		{
			map_data[id] = data;
		}
		
		
		/**
		 * 获取位图帧信息序列
		 * @param	id
		 * @return
		 */
		static public function getBitmapFrameInfo(id:String):Vector.<BitmapFrameInfo>
		{
			return map_data[id];
		}
		
		static public function clear():void
		{
			var data:Vector.<BitmapFrameInfo>;
			var len:uint = 0;
			for (var i in map_data)
			{
				data = map_data[i] as Vector.<BitmapFrameInfo>;
				len = data.length;
				for (var j:uint = 0; j < len; j++ )
				{
					data[j].dispose();
				}
			}
			
			map_data = { };
		}
		
	}

}